#include <iostream>
using namespace std;

int main() {
    int n;
    int num;
    cin >> n;
    int sum = 0;

    for (int i = 0; i < n; i++)
    {
        cin >> num;
        sum = sum + num;
    }
    printf("%d", sum);
    cout << " ";
    printf("%.5f", double(sum) / double(n));
    
    return 0;
}